package com.ytzl.common;

/**
 * @Author: ThinkPad
 * @Creation: 2021/9/15 11:20
 * @Desc: 状态码管理
 */
public enum CodeResultEnums {
    //通用的状态码
    SUCCESS(200,"成功"),
    ERROR(400,"失败"),

    //自定义的状态码
    USER_CODE_EXIST(50001,"用户名已被使用"),
    INPUT_PARAMS_IS_EMPTY(50002,"用户名或密码为空"),
    USER_NOT_EXSITS(50003,"用户不存在或密码错误"),
    SYSTEM_ERROR(20003,"系统异常,获取失败"),
    CITY_ID_IS_NULL(20004,"城市id不能为空");
    ;

    private Integer code;
    private String massage;


    CodeResultEnums(Integer code, String massage) {
        this.code = code;
        this.massage = massage;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMassage() {
        return massage;
    }

    public void setMassage(String massage) {
        this.massage = massage;
    }
}
